﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="XMK.Tadong.Web.Farpoint.Default" %>

<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title><%: lang.Get("Structured data entry")%></title>
    <script type="text/javascript" src="../weblib/jquery/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="../weblib/jquery/jquery.adaptor.js"></script>
    <link href="../weblib/skins/main.css" rel="stylesheet" type="text/css" />
 <script src="../webjs/core/index.js" type="text/javascript"></script>
    <style type="text/css">
    .header {
	    width: 100%;
	    padding: 2111px;
	    float: left;
	    color: #222222;
	    background: #F2F2F2;
	    font-family: 'TitilliumText25L400wt';
    }
    .title {
	    margin: 6px 0 0 75px;
	    float: left;
	    font-size: 30px;
    }
    .badge {
	    margin-left: 10px;
	    float: left;
	    color: #888888;
	    font-family: 'OpenSansRegular';
	    line-height: 52px;
    }
    </style>
     <script type="text/javascript">

         var language = $.cookie('_language_');
         if (language == null || language == '') {
             document.write("<script>document.title='结构化数据入库';<\/script>");
         }
         else if (Number(language) == 1) {
             document.write("<script>document.title='结构化数据入库';<\/script>");
         }
         else if (Number(language) == 0) {
             document.write("<script>document.title='Structured_data_entry';<\/script>");
         }
   </script>   
</head>
<body>
<script language="javascript" type="text/javascript">
    var loadPage = function (tabPanel, record) {
        var tab = tabPanel.getComponent(record.getId());

        if (!tab) {
            tab = tabPanel.add({
                id: record.getId(),
                title: record.data.text,
                closable: true,
                loader: {
                    url: record.data.href,
                    renderer: "frame",
                    loadMask: {
                        showMask: true,
                        msg: "Loading " + record.data.href + "..."
                    }
                },
                autoScroll: true
            });
        }

        tabPanel.setActiveTab(tab);
    };
    </script>

    <form id="form1" runat="server">
    <div>
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    
    <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
        <Items>
            <ext:Panel ID="Panel1" 
                runat="server"
                Region="North"
                Split="true"
                Height="80"
                BodyPadding="1"
                Collapsible="false"
                   >
                  <Content>
					<div class="header">
                    <div ><ext:Image ID="Image1" ImageUrl="../weblib/skins/images/search_logo5.png" runat="server" Height="50" Width="190" style="position: absolute; top: 15px; left: 20px" /></div>
						<%--<div class="title" style="position: absolute; top: 20px; left: 0px">
							<span><%: lang.Get("Exploration Project Database-Structured_data_entry")%></span>
						</div>--%>
					</div>
                     
				</Content>    
                </ext:Panel>
            <ext:TreePanel ID="TreePanel1"
                runat="server" 
                Title='<%#lang.Get("Basics table")%>'
                Region="West"
                Width="225" 
                MinWidth="225" 
                MaxWidth="400" 
                Split="true" 
                Collapsible="true"
                Icon="ChartOrganisation"
                RootVisible="False">
                        <Listeners>
                            <ItemClick Handler="if (record.data.href) { e.stopEvent(); loadPage(#{TabPanel1}, record); }" />
                        </Listeners>
            </ext:TreePanel>
            <ext:TabPanel ID="TabPanel1" runat="server" Region="Center">
                <Items>
                    <ext:Panel ID="Panel5" 
                        runat="server" 
                        Title='<%#lang.Get("Operation help")%>'
                        Border="false" 
                        BodyPadding="6"
                        >
                            <Loader ID="Loader1" 
                             runat="server"
                             Url="Help.aspx"
                             Mode="Frame"
                              >
                                <LoadMask ShowMask="true" Msg='<%=lang.Get("The system help loading")%>' ></LoadMask>
                              </Loader>
                        </ext:Panel>
                </Items>
            </ext:TabPanel>

        </Items>
    </ext:Viewport>

    </div>
    </form>
</body>
</html>
